{extend name="Public:base"/}

{block name="main"}
<div class="box-info">
    <table class="table table-bordered table-hover">
        <thead>
        <tr>
            <th><input type="checkbox" id="check_box" onclick="selectall('ids[]');"/></th>
            <th>ID</th>
            <th align="center">{:L('URL_MAKE_HTML')}</th>
            <th align="left">{:L('URL_example')}</th>
            <th align="left">{:L('URL_RULE')}</th>
            <th class="">{:L('manage')}</th>
        </tr>
        </thead>
        <tbody>
        {volist name="list" id="vo" key="k"}
        <tr>
            <td align="center"><input type="checkbox" name="ids[]" value="{$vo['id']}"/></td>
            <td align="center">{$vo['urlruleid']}</td>
            <td align="center">
                {eq name="vo['ishtml']" value="1"}
                {:L('yes')}
                {else /}
                {:L('no')}
                {/eq}
            </td>
            <td align="left" style="line-height:20px;">{$vo['showexample']}<br>{$vo['listexample']}</td>
            <td align="left" style="line-height:20px;">{$vo['showurlrule']}<br>{$vo['listurlrule']}</td>
            <td class="">
                <a class="btn btn-sm btn-primary" href="{:U('Urlrule/edit',array(urlruleid=>$vo['urlruleid']))}">编辑</a>
                <a class="btn btn-sm btn-danger" href="javascript:confirm_delete('{:U('Urlrule/delete',array(urlruleid=>$vo['urlruleid']))}')">删除</a>
            </td>
        </tr>
        {/volist}
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>

{/block}